/*
 * @Author: wnc
 * @Date: 2021-11-24 11:08:06
 * @Description: 物资模块路由
 */
import { RouteView } from '@/layouts'


// 物资
export default {
  path: '/material',
  component: RouteView,
  redirect: '/material/list',
  name: 'Material',
  meta: {
    title: '物资',
    icon: 'user',
    hideHeader: true,
    permission: ['user']
  },
  children: [
    {
      path: '/material/list',
      name: 'MaterialList',
      component: RouteView,
      // component: () => import('@/views/materials/materialMonthPlan'),
      redirect: '/material/materialMasterPlan',
      meta: {
        title: '计划管理',
        hideHeader: true
      },
      children: [
        {
          path: '/legal/branch-bidding/demandplanning',
          name: 'DemandPlanning',
          component: () => import('@/views/Legal/branchBidding/planManagement'),
          meta: {
            title: '分包招标需求计划管理',
            hidden: true,
            permission: ['form', 'table']
          }
        },
        {
          path: '/material/materialMasterPlan',
          name: 'materialMasterPlan',
          component: () => import('@/views/materials/materialMasterPlan'),
          meta: {
            title: '物资需求总计划',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/materialMasterPlanAdd',
          name: 'materialMasterPlanAdd',
          component: () => import('@/views/materials/materialMasterPlan/add'),
          meta: {
            title: '物资需求总计划',
            hidden: true,
            noTab: true,
            keepAlive: true
          }
        },
        {
          path: '/material/equipmentPurchasePlan',
          name: 'equipmentPurchasePlan',
          component: () => import('@/views/materials/equipmentPurchasePlan'),
          meta: {
            title: '物资设备采购策划',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/equipmentPurchasePlanAdd',
          name: 'equipmentPurchasePlanAdd',
          component: () => import('@/views/materials/equipmentPurchasePlan/add'),
          meta: {
            title: '物资需求采购策划',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/materialMonthPlan',
          name: 'materialMonthPlan',
          component: () => import('@/views/materials/materialMonthPlan'),
          meta: {
            title: '物资需求月计划',
            hidden: true
          }
        },
        {
          hidden: 'true',
          name: 'materialMonthPlanAdd',
          path: '/material/materialMonthPlanAdd',
          component: () => import('@/views/materials/materialMonthPlan/add'),
          meta: {
            title: '物资需求月计划',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/materials/plan/dailyMaterialRequest',
          component: () => import('@/views/materials/plan/dailyMaterialRequest'),
          meta: {
            title: '日常物资需用计划'
          }
        },
        {
          path: '/materials/plan/dailyMaterialRequest/add',
          component: () => import('@/views/materials/plan/dailyMaterialRequest/add'),
          meta: {
            title: '日常物资需用计划',
            noTab: true
          }
        },
        {
          path: '/material/plan/concreteApply/index',
          component: () => import('@/views/materials/plan/concreteApply'),
          meta: {
            title: '混凝土申请表'
          }
        },
        {
          path: '/material/plan/concreteApply/add',
          component: () => import('@/views/materials/plan/concreteApply/add'),
          meta: {
            title: '混凝土申请表',
            noTab: true
          }
        }
      ]
    },
    {
      path: '/material/goods',
      name: 'goods',
      meta: {
        title: '物料管理'
      },
      redirect: '/material/goods/search',
      component: RouteView,
      children: [
        {
          path: '/material/goods/directory',
          name: 'goodsDirectory',
          component: () => import('@/views/materials/goods/directory'),
          meta: {
            title: '物资目录查询',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/goods/directory/edit',
          name: 'goodsDirectoryEdit',
          component: () => import('@/views/materials/goods/directory/edit'),
          meta: {
            title: '物资目录信息',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/goods/search',
          name: 'goodsSearch',
          component: () => import('@/views/materials/goods/search'),
          meta: {
            title: '物料查询',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/goods/search/detail',
          name: 'goodsSearchEdit',
          component: () => import('@/views/materials/goods/search/detail'),
          meta: {
            title: '物料查询查看',
            hidden: true,
            noTab: true
          }
        }
      ]
    },
    {
      path: '/material/procurement',
      name: 'procurement',
      meta: {
        title: '采购管理'
      },
      redirect: '/material/procurement/plan',
      component: RouteView,
      children: [
        {
          path: '/legal/branch-bidding/plandiscussion',
          name: 'PlanDiscussion',
          component: () => import('@/views/Legal/branchBidding/planDiscussion'),
          meta: {
            title: '分包招议标计划管理',
            hidden: true,
            permission: ['form', 'table']
          }
        },
        {
          path: '/legal/branch-bidding/plandiscussion/detail',
          name: 'plandiscussionDetail',
          component: () => import('@/views/Legal/branchBidding/planDiscussion/details'),
          meta: {
            title: '分包招议标计划详情',
            hidden: true,
            permission: ['form', 'table'],
            noTab: true
          }
        },
        {
          path: '/legal/branch-bidding/complete',
          name: 'DemandPlanningComplete',
          component: () => import('@/views/Legal/branchBidding/planComplete'),
          meta: {
            title: '分包招议标完成情况',
            hidden: true,
            permission: ['form', 'table']
          }
        },
        {
          path: '/legal/branch-bidding/details',
          name: 'DemandPlanningDetails',
          component: () => import('@/views/Legal/branchBidding/planComplete/details'),
          meta: {
            title: '分包招议标完成情况详情',
            hidden: true,
            permission: ['form', 'table'],
            noTab: true
          }
        },
        {
          path: '/material/procurement/plan',
          name: 'procurementPlan',
          component: () => import('@/views/materials/procurement/plan'),
          meta: {
            title: '物资招标计划',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/procurement/planAdd',
          name: 'procurementPlanAdd',
          component: () => import('@/views/materials/procurement/plan/add'),
          meta: {
            title: '物资招标计划',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/procurement/apply',
          name: 'procurementApply',
          component: () => import('@/views/materials/procurement/apply'),
          meta: {
            title: '物资招标采购申请',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/procurement/applyAdd',
          name: 'procurementApplyAdd',
          component: () => import('@/views/materials/procurement/apply/add'),
          meta: {
            title: '物资招标采购申请',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/procurement/review',
          name: 'procurementReview',
          component: () => import('@/views/materials/procurement/review'),
          meta: {
            title: '物资招标文件评审',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/procurement/reviewAdd',
          name: 'procurementReviewAdd',
          component: () => import('@/views/materials/procurement/review/add'),
          meta: {
            title: '物资招标文件评审',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/procurement/sign',
          name: 'procurementSign',
          component: () => import('@/views/materials/procurement/sign'),
          meta: {
            title: '物资招标评审会签',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/procurement/signAdd',
          name: 'procurementSignAdd',
          component: () => import('@/views/materials/procurement/sign/add'),
          meta: {
            title: '物资招标评审会签',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/procurement/tender',
          name: 'procurementTender',
          component: () => import('@/views/materials/procurement/tender'),
          meta: {
            title: '物资招标定标'
          }
        },
        {
          hidden: 'true',
          path: '/material/procurement/tenderAdd',
          name: 'procurementTenderAdd',
          component: () => import('@/views/materials/procurement/tender/add'),
          meta: {
            title: '物资招标定标',
            hidden: true,
            noTab: true
          }
        }
      ]
    },
    {
      path: '/material/acceptance',
      name: 'acceptance',
      meta: {
        title: '验收管理'
      },
      redirect: '/material/acceptance/device',
      component: RouteView,
      children: [
        {
          path: '/material/acceptance/device',
          name: 'acceptanceDevice',
          component: () => import('@/views/materials/acceptance/device'),
          meta: {
            title: '机械设备进场验收',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/acceptance/device/add',
          name: 'acceptanceDeviceAdd',
          component: () => import('@/views/materials/acceptance/device/add'),
          meta: {
            title: '机械设备进场验收',
            hidden: true,
            noTab: true
          }
        }
      ]
    },
    {
      path: '/material/settlement',
      name: 'contract',
      meta: {
        title: '结算管理'
      },
      redirect: '/material/settlement/concrete',
      component: RouteView,
      children: [
        {
          path: '/material/settlement/concrete',
          name: 'settlementConcrete',
          component: () => import('@/views/materials/settlement/concrete'),
          meta: {
            title: '混凝土结算',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/settlement/concrete/add',
          name: 'settlementConcreteAdd',
          component: () => import('@/views/materials/settlement/concrete/add'),
          meta: {
            title: '混凝土结算',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/settlement/materials',
          name: 'settlementMaterials',
          component: () => import('@/views/materials/settlement/materials'),
          meta: {
            title: '物资结算单',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/settlement/materials/add',
          name: 'settlementMaterialseAdd',
          component: () => import('@/views/materials/settlement/materials/add'),
          meta: {
            title: '物资结算',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/settlement/lease',
          name: 'settlementLease',
          component: () => import('@/views/materials/settlement/lease'),
          meta: {
            title: '租赁费结算单',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/settlement/lease/add',
          name: 'settlementLeaseAdd',
          component: () => import('@/views/materials/settlement/lease/add'),
          meta: {
            title: '租赁费结算单',
            hidden: true,
            noTab: true
          }
        }
      ]
    },
    {
      path: '/material/supplier',
      name: 'supplier',
      meta: {
        title: '供应商管理'
      },
      redirect: '/material/supplier/inspection',
      component: RouteView,
      children: [
        {
          path: '/material/supplier/inspection',
          name: 'supplierInspection',
          component: () => import('@/views/materials/supplier/inspection'),
          meta: {
            title: '供应商考察',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/supplier/inspection/add',
          name: 'supplierInspectionAdd',
          component: () => import('@/views/materials/supplier/inspection/add'),
          meta: {
            title: '供应商考察',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/supplier/maintenance',
          name: 'supplierMaintenance',
          component: () => import('@/views/materials/supplier/maintenance'),
          meta: {
            title: '供应商维护',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/supplier/maintenance/add',
          name: 'supplierMaintenanceAdd',
          component: () => import('@/views/materials/supplier/maintenance/add'),
          meta: {
            title: '供应商维护',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/supplier/new',
          name: 'supplierNew',
          component: () => import('@/views/materials/supplier/new'),
          meta: {
            title: '供应商新增',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/supplier/new/add',
          name: 'supplierNewAdd',
          component: () => import('@/views/materials/supplier/new/add'),
          meta: {
            title: '供应商新增',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/supplier/search',
          name: 'supplierSearch',
          component: () => import('@/views/materials/supplier/search'),
          meta: {
            title: '供应商查询',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/supplier/search/add',
          name: 'supplierSearchAdd',
          component: () => import('@/views/materials/supplier/search/add'),
          meta: {
            title: '供应商查询查看',
            hidden: true,
            noTab: true
          }
        }
      ]
    },
    {
      path: '/material/assets',
      name: 'assets',
      meta: {
        title: '资产管理'
      },
      redirect: '/material/assets/parameter',
      component: RouteView,
      children: [
        {
          path: '/material/assets/parameter',
          name: 'assetsParameter',
          component: () => import('@/views/materials/assets/parameter'),
          meta: {
            title: '资产台账',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/assets/parameter/add',
          name: 'assetsParameterAdd',
          component: () => import('@/views/materials/assets/parameter/add'),
          meta: {
            title: '资产台账',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/assets/transfers',
          name: 'assetsTransfers',
          component: () => import('@/views/materials/assets/transfers'),
          meta: {
            title: '资产调拨',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/assets/transfers/add',
          name: 'assetsTransfersAdd',
          component: () => import('@/views/materials/assets/transfers/add'),
          meta: {
            title: '资产调拨',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/assets/disposal',
          name: 'assetsDisposal',
          component: () => import('@/views/materials/assets/disposal'),
          meta: {
            title: '资产处置申请',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/assets/disposal/add',
          name: 'assetsDisposalAdd',
          component: () => import('@/views/materials/assets/disposal/add'),
          meta: {
            title: '资产处置申请',
            hidden: true,
            noTab: true
          }
        }
      ]
    },
    {
      path: '/material/remaining',
      name: 'assets',
      meta: {
        title: '剩余物资管理'
      },
      redirect: '/material/remaining/disposal',
      component: RouteView,
      children: [
        {
          path: '/material/remaining/disposal',
          name: 'remainingDisposal',
          component: () => import('@/views/materials/remaining/disposal'),
          meta: {
            title: '剩余物资处置申请',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/remaining/disposal/add',
          name: 'remainingDisposalAdd',
          component: () => import('@/views/materials/remaining/disposal/add'),
          meta: {
            title: '剩余物资处置申请',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/remaining/settlement',
          name: 'remainingSettlement',
          component: () => import('@/views/materials/remaining/settlement'),
          meta: {
            title: '剩余物资结算单',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/remaining/settlement/add',
          name: 'remainingSettlementAdd',
          component: () => import('@/views/materials/remaining/settlement/add'),
          meta: {
            title: '剩余物资结算单',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/remaining/transfers',
          name: 'remainingTransfers',
          component: () => import('@/views/materials/remaining/transfers'),
          meta: {
            title: '剩余物资调拨单',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/remaining/transfers/add',
          name: 'remainingTransfersAdd',
          component: () => import('@/views/materials/remaining/transfers/add'),
          meta: {
            title: '剩余物资调拨单',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/remaining/parameter',
          name: 'remainingParameter',
          component: () => import('@/views/materials/remaining/parameter'),
          meta: {
            title: '剩余物资台账',
            hidden: true
          }
        }
      ]
    },
    {
      path: '/material/inventory',
      name: 'assets',
      meta: {
        title: '盘点管理'
      },
      redirect: '/material/inventory/check',
      component: RouteView,
      children: [
        {
          path: '/material/inventory/check',
          name: 'inventoryCheck',
          component: () => import('@/views/materials/inventory/check'),
          meta: {
            title: '物资盘点记录',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/inventory/check/add',
          name: 'inventoryCheckAdd',
          component: () => import('@/views/materials/inventory/check/add'),
          meta: {
            title: '物资盘点记录',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/inventory/checkPlan',
          name: 'checkPlan',
          component: () => import('@/views/materials/inventory/checkPlan'),
          meta: { title: '物资盘点计划' }
        },
        {
          path: '/material/inventory/checkPlanAdd',
          name: 'checkPlanAdd',
          component: () => import('@/views/materials/inventory/checkPlan/add'),
          meta: { title: '物资盘点计划', noTab: true }
        },
        {
          path: '/material/inventory/sceneConsumeMaterialDetail',
          name: 'sceneConsumeMaterialDetail',
          component: () => import('@/views/materials/inventory/sceneConsumeMaterialDetail'),
          meta: { title: '现场消耗物资明细表' }
        },
        {
          path: '/material/inventory/sceneConsumeMaterialDetailAdd',
          name: 'sceneConsumeMaterialDetailAdd',
          component: () => import('@/views/materials/inventory/sceneConsumeMaterialDetail/add'),
          meta: { title: '现场消耗物资明细表', noTab: true }
        }
      ]
    },
    {
      path: '/material/check',
      name: 'assets',
      meta: {
        title: '物资检查管理'
      },
      redirect: '/material/check/record',
      component: RouteView,
      children: [
        {
          path: '/material/check/rectification',
          name: 'checkRectification',
          component: () => import('@/views/materials/check/rectification'),
          meta: {
            title: '整改回复',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/check/rectification/add',
          name: 'checkRectificationAdd',
          component: () => import('@/views/materials/check/rectification/add'),
          meta: {
            title: '整改回复',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/check/record',
          name: 'checkRecord',
          component: () => import('@/views/materials/check/record'),
          meta: {
            title: '物资检查记录',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/check/record/add',
          name: 'checkRecordAdd',
          component: () => import('@/views/materials/check/record/add'),
          meta: {
            title: '物资检查记录',
            hidden: true,
            noTab: true
          }
        }
      ]
    },
    {
      path: '/material/benefitAnalysis',
      name: 'benefitAnalysis',
      meta: {
        title: '数据分析管理'
      },
      redirect: '/material/benefitAnalysis/default',
      component: RouteView,
      children: [
        {
          path: '/material/benefitAnalysis/default',
          name: 'benefitAnalysisIndex',
          component: () => import('@/views/materials/benefitAnalysis/benefitAnalysis'),
          meta: {
            title: '采购效益率',
            hidden: true
          }
        },
        {
          hidden: 'true',
          path: '/material/benefitAnalysis/add',
          name: 'benefitAnalysisAdd',
          component: () => import('@/views/materials/benefitAnalysis/benefitAnalysis/add'),
          meta: {
            title: '采购效益率',
            hidden: true,
            noTab: true
          }
        },
        {
          path: '/material/benefitAnalysis/fieldCostAnalysis',
          name: 'fieldCostAnalysis',
          component: () => import('@/views/materials/benefitAnalysis/fieldCostAnalysis'),
          meta: {
            title: '现场成本节超分析表'
          }
        },
        {
          path: '/material/benefitAnalysis/fieldCostAnalysisAdd',
          name: 'fieldCostAnalysisAdd',
          component: () => import('@/views/materials/benefitAnalysis/fieldCostAnalysis/add'),
          meta: {
            title: '现场成本节超分析表',
            noTab: true
          }
        },
        {
          path: '/material/benefitAnalysis/controlIndicators',
          name: 'fieldCostAnalysis',
          component: () => import('@/views/materials/benefitAnalysis/controlIndicators'),
          meta: {
            title: '管控指标'
          }
        },
        {
          path: '/material/benefitAnalysis/controlIndicatorsAdd',
          name: 'fieldCostAnalysisAdd',
          component: () => import('@/views/materials/benefitAnalysis/controlIndicators/add'),
          meta: {
            title: '管控指标',
            noTab: true
          }
        }
      ]
    },
    {
      path: '/material/use',
      name: 'use',
      meta: {
        title: '物资使用管理'
      },
      redirect: '/material/use/scene',
      component: RouteView,
      children: [
        {
          path: '/material/use/scene',
          name: 'useScene',
          component: () => import('@/views/materials/use/scene'),
          meta: { title: '物资现场管理' }
        },
        {
          path: '/material/use/sceneAdd',
          name: 'sceneAdd',
          component: () => import('@/views/materials/use/scene/add'),
          meta: { title: '物资现场管理', noTab: true }
        }
      ]
    }
  ]
}
